#pragma once

#include "../common/globaldefine.h"
#include <list>
#include "wowfunc.h"
#include <vector>
struct REWORDINFO
{
	CStringA strPlayerName;
	CStringA strType;
	CStringA strChannel;
	CStringA strText;
	int index;
	int iType;
	BOOL bIsReword;
};
struct KEY_WORD
{
	std::vector<CStringA> aryKey;
	std::vector<CString> aryWord;
};
class CAutoReWord
{
public:
	CAutoReWord(void);
public:
	~CAutoReWord(void);
public:
	void* GetMem();
	BOOL WriteListInfo();
	BOOL SendInfo(CStringA info);
	BOOL HitKey(HWND hWnd, DWORD dwMsg, DWORD dwFlag);
	BOOL ReWord(bool bWarning=false, CString strWords = _T(""), bool bReward=false);
	BOOL ReWord(CString strWords);
private:
	REWORD aryWord[60];
	static std::list<REWORDINFO> mlistInfo;
	std::vector<KEY_WORD> mKeyWord;
	DWORD mdwTime;
	DWORD mdwLastTime;
};
